package com.chanzany.command;

import com.chanzany.command.entity.User;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;


public class Main {

    static JdbcTemplate jdbcTemplate = new JdbcTemplate();
    public static void main(String[] args) {
        String sql = "select * from user";
        jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(User.class));
    }
}
